import chunk from '@/router/pathApi'

export const buildPage = [
  // 案场首页
  {
    path: '/buildingHome',
    component: chunk.modules('middleView'),
    name: 'buildingHome',
    meta: {
      icon: 'icon-icon_home',
      title: '案场首页',
      sideBar: true,
      ifNocholdren: true,
      noAuthor: true //是否需要权限
      // permissionCode: '0101000000'
    },
    redirect: 'buildingHome/statistics',
    children: [
      {
        path: 'statistics',
        name: 'statistics',
        component: chunk.buildingHome('statistics/statistics'),
        meta: {
          title: '案场首页',
          sideBar: false,
          keepAlive: true,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'caseRateHomeDetails',
        component: chunk.backStage('caseRate/caseRateDetails'),
        name: 'caseRateHomeDetails',
        meta: {
          title: '案场评级详情',
          parentPath: '/buildingHome',
          sideBar: false,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'taskListPage',
        name: 'taskListPage',
        component: chunk.buildingHome('UdealProcess/taskListPage'),
        meta: {
          title: '案场首页任务',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage',
          keepAlive: true
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'customerVisit',
        name: 'customerVisit',
        component: chunk.buildingHome('customerVisit/customerVisit'),
        meta: {
          title: '来人统计',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'clueHome',
        name: 'clueHome',
        component: chunk.buildingHome('clueHome/clueHome'),
        meta: {
          title: '线索统计',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'ownershipPlan',
        name: 'ownershipPlan',
        component: chunk.buildingHome('ownershipPlan/ownershipPlan'),

        meta: {
          title: '置业计划书统计',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'customerInfo',
        name: 'customerInfo',
        component: chunk.buildingHome('customerInfo/customerInfo'),

        meta: {
          title: '客户信息完善统计',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'customerFollow',
        name: 'customerFollow',
        component: chunk.buildingHome('customerFollow/customerFollow'),

        meta: {
          title: '客户跟进统计',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'dailyPaper',
        name: 'dailyPaper',
        component: chunk.buildingHome('dailyPaper/dailyPaper'),

        meta: {
          title: '案场日报',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'dailyChart',
        name: 'dailyChart',
        component: chunk.buildingHome('dailyPaper/dailyChart'),
        meta: {
          title: '日报可视化',
          sideBar: false,
          parentPath: '/buildingHome',
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
        }
      }
    ]
  },
  {
    //待办任务
    path: '/Udeal',
    component: chunk.modules('middleView'),
    name: 'home',
    meta: {
      icon: 'icon-icon_list',
      title: '待办任务',
      sideBar: false,
      ifNocholdren: true,
      noAuthor: true, //是否需要权限
      isbuild: 'buildpage'
    },
    redirect: 'Udeal/UdealTask',
    children: [
      {
        path: 'UdealTask',
        name: 'UdealTask',
        component: chunk.modules('UdealTask/index'),
        meta: {
          title: '待办任务',
          sideBar: false,
          parentPath: '/Udeal',
          keepAlive: true,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage',
          permissionCode: '0113000000'
        }
      }
    ]
  },

  // 客户管理
  {
    path: '/allCustomersManagement',
    component: chunk.modules('middleView'),
    meta: {
      icon: 'icon-icon_cos',
      title: '客户管理',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0101000000'
    },
    children: [
      {
        path: 'allCustomers/index',
        component: chunk.customerManagementCenter('index'),
        name: 'allCustomers',
        meta: {
          auth: false,
          title: '到访客户',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0101010000'
        }
      },
      {
        path: 'allCustomers/details',
        component: chunk.customerManagementCenter('details'),
        name: 'allCustomersDetails',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '客户详情',
          parentPath: '/allCustomersManagement/allCustomers/index',
          isbuild: 'buildpage',
          permissionCode: '0101000000'
        }
      },
      {
        path: 'allCustomers/assignCustomers', //分配客户
        component: chunk.customerManagementCenter('assignCustomers'),
        name: 'assignCustomers',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '分配客户',
          parentPath: '/allCustomersManagement/allCustomers/index',
          isbuild: 'buildpage',
          permissionCode: '0101000000'
        }
      },
      {
        path: 'clueCustomer',
        name: 'clueCustomer',
        component: chunk.customerManagementCenter('clueCustomer/index'),
        meta: {
          title: '线索客户',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0101020000'
        }
      },

      {
        path: 'clueCustomer/clueAllotPage',
        component: chunk.customerManagementCenter('clueCustomer/clueAllotPage'),
        name: 'clueAllotPage',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '线索分配',
          parentPath: '/allCustomersManagement/clueCustomer',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'publicCustomer',
        name: 'publicCustomer',
        component: chunk.customerManagementCenter('publicCustomer/publicCustomer'),
        meta: {
          title: '公客池',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0101050000'
        }
      },
      {
        path: 'clueRecord',
        name: 'clueRecord',
        component: chunk.customerManagementCenter('clueRecord/index'),
        meta: {
          title: '线索记录',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0101030000'
        }
      },
      {
        path: 'visitRecord',
        name: 'visitRecord',
        component: chunk.customerManagementCenter('visitRecord/visitRecord'),
        meta: {
          title: '线索客户到访记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/clueCustomer',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'assignClueRecord',
        name: 'assignClueRecord',
        component: chunk.customerManagementCenter('assignCustomersRecord/assignClueRecord'),
        meta: {
          title: '线索客户分配记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/clueCustomer',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'assignVisitRecord',
        name: 'assignVisitRecord',
        component: chunk.customerManagementCenter('assignCustomersRecord/assignVisitRecord'),
        meta: {
          title: '到访客户分配记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/allCustomers/index',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'assignPublicRecord',
        name: 'assignPublicRecord',
        component: chunk.customerManagementCenter('assignCustomersRecord/assignPublicRecord'),
        meta: {
          title: '公客池客户分配记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/publicCustomer',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'weChatCustomer',
        name: 'weChatCustomer',
        component: chunk.customerManagementCenter('weChatCustomer/weChatCustomer'),
        meta: {
          title: '微信客户',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/clueCustomer',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'publicAssignRecord',
        name: 'publicAssignRecord',
        component: chunk.customerManagementCenter('publicAssignRecord/publicAssignRecord'),
        meta: {
          title: '公客池分配记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/publicCustomer',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'robRecord',
        name: 'robRecord',
        component: chunk.customerManagementCenter('robRecord/robRecord'),
        meta: {
          title: '抢客记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/publicCustomer',
          // permissionCode: '0101020000'
          noAuthor: true //是否需要权限
        }
      },
      {
        path: 'entryRecord',
        name: 'entryRecord',
        component: chunk.customerManagementCenter('entryRecord/entryRecord'),
        meta: {
          title: '入池记录',
          isbuild: 'buildpage',
          parentPath: '/allCustomersManagement/publicCustomer',
          noAuthor: true //是否需要权限
        }
      },

      // 3.7 客户分配
      {
        path: 'clueAssign',
        component: chunk.customerManagementCenter('assign/clueAssign'),
        name: 'clueAssign',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '线索客户分配',
          parentPath: '/allCustomersManagement/clueCustomer',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'visitAssign',
        component: chunk.customerManagementCenter('assign/visitAssign'),
        name: 'visitAssign',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '到访客户分配',
          parentPath: '/allCustomersManagement/allCustomers/index',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'publicAssign',
        component: chunk.customerManagementCenter('assign/publicAssign'),
        name: 'publicAssign',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '公客池客户分配',
          parentPath: '/allCustomersManagement/publicCustomer',
          isbuild: 'buildpage'
        }
      }
    ]
  },
  // 案场管理
  {
    path: '/buildingManagement',
    component: chunk.modules('middleView'),
    meta: {
      icon: 'icon-icon_sale',
      title: '案场管理',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0102000000'
    },
    children: [
      {
        path: 'buildingConfigure',
        component: chunk.buildingManagement('buildingConfigure/buildingConfigure'),
        name: 'buildingConfigure',
        meta: {
          auth: false,
          title: '案场配置',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0102010000'
        }
      },
      {
        path: 'teamList',
        component: chunk.buildingManagement('teamConfig/teamList'),
        name: 'teamList',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '团队管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0102030000'
        }
      },
      {
        path: 'buildingFile',
        component: chunk.buildingManagement('buildingFile/index'),
        name: 'buildingFile',
        meta: {
          auth: false,
          noAuthor: true, //是否需要权限
          title: '项目资料归档清单',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0102040000'
        }
      }
      // {
      //   path: "teamConfig/teamConfig",
      //   name: "teamConfig",
      //   component: chunk.buildingManagement("teamConfig/teamConfig"),
      //   meta: {
      //     title: "团队列表",
      //     parentPath: "/buildingManagement/teamConfig",
      //     sideBar: false,
      //     isbuild: "buildpage",
      //   },
      // },
    ]
  },
  //销售管理
  {
    path: '/salesManagement',
    component: chunk.modules('middleView'),
    meta: {
      icon: 'icon-icon_sell',
      title: '销售管理',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0104000000'
    },
    name: 'salesManagement',
    children: [
      {
        path: 'subscriptionOrder',
        component: chunk.salesManagement('subScription/subscriptionOrder'),
        name: 'subscriptionOrder',
        meta: {
          auth: false,
          title: '认购单',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0104010000'
        }
      },
      {
        path: 'subScriptionAdjust',
        name: 'subScriptionAdjust',
        component: chunk.salesManagement('subScriptionAdjust/adjustList'),
        meta: {
          title: '认购单调整管理',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/salesManagement/subscriptionOrder'
        }
      },
      {
        path: 'subAdjust',
        name: 'subAdjust',
        component: chunk.salesManagement('createAdjust/subAdjust'),
        meta: {
          title: '认购单调整',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/salesManagement/subscriptionOrder'
        }
      },
      {
        path: 'subApproveDetailCase',
        component: chunk.flowApproval('orderAdjustApprove/subApprove/detail'),
        name: 'subApproveDetailCase',
        meta: {
          auth: false,
          title: '认购调整单详情',
          sideBar: false,
          noAuthor: true, //是否需要权限
          parentPath: '/salesManagement/subscriptionOrder',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'subscriptionDetail',
        component: chunk.salesManagement('subScription/subscriptionDetail'),
        name: 'subscriptionDetail',
        meta: {
          auth: false,
          title: '认购详情',
          parentPath: '/salesManagement/subscriptionOrder',
          sideBar: false,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'backOrder',
        component: chunk.salesManagement('backOrder/backOrder'),
        name: 'backOrder',
        meta: {
          auth: false,
          title: '退购单',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0104020000'
        }
      },
      {
        path: 'backOrderDetail',
        component: chunk.salesManagement('backOrder/backOrderDetail'),
        name: 'backOrderDetail',
        meta: {
          auth: false,
          title: '退购详情',
          parentPath: '/salesManagement/backOrder',
          sideBar: false,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'contractOrder',
        component: chunk.salesManagement('contractOrder/contractOrder'),
        name: 'contractOrder',
        meta: {
          auth: false,
          title: '签约单',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0104030000'
        }
      },
      {
        path: 'contractAdjust',
        name: 'contractAdjust',
        component: chunk.salesManagement('contractAdjust/adjustList'),
        meta: {
          title: '签约单调整管理',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/salesManagement/contractOrder'
        }
      },
      {
        path: 'conAdjust',
        name: 'conAdjust',
        component: chunk.salesManagement('createAdjust/conAdjust'),
        meta: {
          title: '签约单调整',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/salesManagement/contractOrder'
        }
      },
      {
        path: 'contractApproveDetailCase',
        component: chunk.flowApproval('orderAdjustApprove/contractApprove/detail'),
        name: 'contractApproveDetailCase',
        meta: {
          auth: false,
          title: '签约调整单详情',
          parentPath: '/salesManagement/contractOrder',
          sideBar: false,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage'
        }
      },
      {
        path: 'contractDetail',
        component: chunk.salesManagement('contractOrder/contractDetail'),
        name: 'contractDetail',
        meta: {
          auth: false,
          title: '签约详情',
          sideBar: false,
          noAuthor: true, //是否需要权限
          parentPath: '/salesManagement/contractOrder',
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'refundOrder',
        component: chunk.salesManagement('refundOrder/refundOrder'),
        name: 'refundOrder',
        meta: {
          auth: false,
          title: '退签单',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0104040000'
        }
      },
      {
        path: 'refundOrderDetail',
        component: chunk.salesManagement('refundOrder/refundOrderDetail'),
        name: 'refundOrderDetail',
        meta: {
          auth: false,
          title: '退签详情',
          sideBar: false,
          noAuthor: true, //是否需要权限
          parentPath: '/salesManagement/refundOrder',
          isbuild: 'buildpage'
          // permissionCode: '0101000000'
        }
      },
      {
        path: 'delivery',
        component: chunk.salesManagement('deliveryManagement/delivery'),
        name: 'delivery',
        meta: {
          auth: false,
          title: '交房管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0104050000'
        }
      },
      {
        path: 'buildingControl',
        component: chunk.salesManagement('salesControl/buildingControl'),
        name: 'buildingControl',
        meta: {
          auth: false,
          title: '销控管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0105000000'
        }
      },
      {
        path: 'roomControl',
        component: chunk.salesManagement('salesControl/roomControl'),
        name: 'roomControl',
        meta: {
          auth: false,
          title: '房源销控管理',
          parentPath: '/salesManagement/buildingControl',
          sideBar: false,
          isbuild: 'buildpage',
          noAuthor: true //是否需要权限
          // permissionCode: '0101000000'
        }
      }
    ]
  },

  // 楼盘建模
  {
    path: '/buildingModeling',
    component: chunk.modules('middleView'),
    meta: {
      icon: 'icon-icon_building',
      title: '楼盘建模',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0103000000'
    },
    children: [
      {
        path: 'product',
        component: chunk.buildingModeling('product/product'),
        name: 'product',
        meta: {
          auth: false,
          title: '产品管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0103010000'
        }
      },
      {
        path: 'modelingSettings',
        component: chunk.buildingModeling('modelingSettings/modelingSettings'),
        name: 'modelingSettings',
        meta: {
          auth: false,
          title: '建模设置',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0103020000'
        }
      },
      {
        path: 'housingModel',
        component: chunk.buildingModeling('modelingSettings/housingModel'),
        name: 'housingModel',
        meta: {
          auth: false,
          title: '房源模型',
          noAuthor: true, //是否需要权限
          parentPath: '/buildingModeling/modelingSettings',
          sideBar: false,
          isbuild: 'buildpage'
        }
      },
      {
        path: 'HouseTypeManagement',
        name: 'HouseTypeManagement',
        component: chunk.buildingModeling('HouseTypeManagement/HouseTypeManagement'),
        meta: {
          auth: false,
          title: '户型管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0103030000'
        }
      },
      {
        path: 'buildingResources',
        name: 'buildingResources',
        component: chunk.buildingModeling('buildingResources/buildingResources'),
        meta: {
          auth: false,
          title: '房源管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0103040000'
        }
      }
    ]
  },
  //回款管理
  {
    path: '/paymentManagement',
    name: 'paymentManagement',
    component: chunk.modules('middleView'),
    meta: {
      icon: 'icon-icon_money',
      title: '回款管理',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0106000000'
    },
    children: [
      {
        path: 'paymentTask',
        component: chunk.paymentManagement('paymentTask'),
        name: 'paymentTask',
        meta: {
          auth: false,
          title: '回款任务',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0106020000'
        }
      },
      {
        path: 'paymentArrival',
        component: chunk.paymentManagement('paymentArrival'),
        name: 'paymentArrival',
        meta: {
          auth: false,
          title: '回款到账',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0106010000'
        }
      },
      {
        path: 'cancelRecord',
        component: chunk.paymentManagement('cancelRecord'),
        name: 'cancelRecord',
        meta: {
          auth: false,
          title: '作废记录',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0106030000'
          // 暂无code
        }
      }
    ]
  },
  // 营销管理
  {
    path: '/marketingCenter',
    name: 'marketingCenter',
    component: chunk.modules('middleView'),
    meta: {
      title: '营销管理',
      icon: 'icon-icon_market',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0107000000'
    },
    children: [
      {
        path: 'propertyReport',
        component: chunk.modules('middleView'),
        meta: {
          auth: false,
          title: '置业计划书',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0107010000'
        },
        children: [
          {
            path: 'articleManagement/index',
            component: chunk.marketingCenter('propertyReport/articleManagement/index'),
            name: 'articleManagement',
            meta: {
              auth: false,
              title: '置业计划书维护',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0107040000'
            }
          },
          {
            path: 'articleManagement/addEditArticlePage',
            component: chunk.marketingCenter('propertyReport/articleManagement/addEditArticlePage'),
            name: 'addEditArticlePage',
            meta: {
              auth: false,
              title: '新增/编辑文章',
              noAuthor: true, //是否需要权限
              parentPath: '/marketingCenter/propertyReport/articleManagement/index',
              isbuild: 'buildpage'
            }
          },
          {
            path: 'articleManagement/viewArticlePage',
            component: chunk.marketingCenter('propertyReport/articleManagement/viewArticlePage'),
            name: 'viewArticlePage',
            meta: {
              auth: false,
              title: '查看文章',
              noAuthor: true, //是否需要权限
              parentPath: '/marketingCenter/propertyReport/articleManagement/index',
              isbuild: 'buildpage'
            }
          },
          {
            path: 'articleReview/articleReview',
            component: chunk.marketingCenter('propertyReport/articleReview/index'),
            name: 'articleReview',
            meta: {
              auth: false,
              title: '置业计划书审核',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0107050000'
            }
          },
          {
            path: 'articleReview/viewArticleReview',
            component: chunk.marketingCenter('propertyReport/articleReview/viewArticleReview'),
            name: 'viewArticleReview',
            meta: {
              auth: false,
              title: '审核文章内容',
              noAuthor: true, //是否需要权限
              isbuild: 'buildpage',
              parentPath: '/marketingCenter/propertyReport/articleReview/articleReview'
            }
          },
          {
            path: 'articleReview/auditLog',
            component: chunk.marketingCenter('propertyReport/articleReview/auditLog'),
            name: 'auditLog',
            meta: {
              auth: false,
              title: '文章审核记录',
              noAuthor: true, //是否需要权限
              isbuild: 'buildpage',
              parentPath: '/marketingCenter/propertyReport/articleReview/articleReview'
            }
          },
          {
            path: 'propertyReport/reportStatistics',
            name: 'reportStatistics',
            component: chunk.marketingCenter('propertyReport/reportStatistics'),
            meta: {
              title: '置业计划书统计',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0107010000'
            }
          },
          {
            path: 'propertyReport/reportList',
            name: 'reportList',
            component: chunk.marketingCenter('propertyReport/reportList'),
            meta: {
              title: '置业计划书列表',
              sideBar: false,
              isbuild: 'buildpage',
              noAuthor: true, //是否需要权限
              parentPath: '/marketingCenter/propertyReport/propertyReport/reportStatistics'
            }
          }
        ]
      },
      {
        path: 'build',
        component: chunk.modules('middleView'),
        meta: {
          auth: false,
          title: '线上售楼处',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0107020000'
        },
        children: [
          {
            path: 'build/detail',
            name: 'buildingDetail',
            component: chunk.marketingCenter('build/detail'),
            meta: {
              title: '线上售楼处维护',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0107020000'
            }
          },
          {
            path: 'buildingCheckcenterFirst',
            component: chunk.marketingCenter('buildingCheckcenter/buildingCheckcenter'),
            name: 'buildingCheckcenterFirst',
            meta: {
              auth: false,
              title: '线上售楼处审核',
              isbuild: 'buildpage',
              permissionCode: '0107060000',
              sideBar: true
            }
          }
        ]
      },
      {
        path: 'shortArticle',
        component: chunk.marketingCenter('shortArticle/index'),
        name: 'shortArticle',
        meta: {
          auth: false,
          title: '霸屏神器',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0107080000'
        }
      },
      {
        path: 'shortArticle/addEditShort',
        component: chunk.marketingCenter('shortArticle/addEditShort'),
        name: 'addEditShort',
        meta: {
          auth: false,
          title: '新增/编辑霸屏神器',
          noAuthor: true, //是否需要权限
          parentPath: '/marketingCenter/shortArticle',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'shortArticle/placardAddEdit',
        component: chunk.marketingCenter('shortArticle/placardAddEdit'),
        name: 'placardAddEdit',
        meta: {
          auth: false,
          title: '新增/编辑案场海报',
          noAuthor: true, //是否需要权限
          parentPath: '/marketingCenter/shortArticle',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'shortArticle/viewShort',
        component: chunk.marketingCenter('shortArticle/viewShort'),
        name: 'viewShort',
        meta: {
          auth: false,
          title: '查看霸屏神器',
          noAuthor: true, //是否需要权限
          parentPath: '/marketingCenter/shortArticle',
          isbuild: 'buildpage'
        }
      },
      {
        path: 'importArticleManagement/index',
        component: chunk.marketingCenter('importArticleManagement/index'),
        name: 'importArticleManagement',
        meta: {
          auth: false,
          title: '发文章(公众号文章转发)',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0107090000'
        }
      },
      {
        path: 'customerForCode',
        name: 'customerForCode',
        component: chunk.marketingCenter('customerForCode/index'),
        meta: {
          title: '码上获客',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0107100000'
        }
      },
      {
        path: 'customerForCodeDetail',
        name: 'customerForCodeDetail',
        component: chunk.marketingCenter('customerForCode/detail'),
        meta: {
          title: '码上获客详情',
          auth: false,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage',
          parentPath: '/marketingCenter/customerForCode'
        }
      },
      {
        path: 'expandCodeDetail',
        name: 'expandCodeDetail',
        component: chunk.marketingCenter('customerForCode/expandCode'),
        meta: {
          title: '拓客码详情',
          auth: false,
          noAuthor: true, //是否需要权限
          isbuild: 'buildpage',
          parentPath: '/marketingCenter/customerForCode'
        }
      },
      {
        path: 'activityManagement',
        component: chunk.modules('middleView'),
        meta: {
          auth: false,
          title: '抽奖活动',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0107110000'
        },
        children: [
          {
            path: 'activity',
            component: chunk.marketingCenter('activityManagement/activity/activity'),
            name: 'activity',
            meta: {
              auth: false,
              title: '活动管理',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0107110100'
            }
          },
          {
            path: 'addEditActivity',
            component: chunk.marketingCenter('activityManagement/activity/addEditActivity'),
            name: 'addEditActivity',
            meta: {
              auth: false,
              title: '新增/编辑活动',
              noAuthor: true, //是否需要权限
              parentPath: '/marketingCenter/activityManagement/activity',
              isbuild: 'buildpage'
            }
          },
          {
            path: 'activityData',
            component: chunk.marketingCenter('activityManagement/activityData/activityData'),
            name: 'activityData',
            meta: {
              auth: false,
              title: '活动数据',
              noAuthor: true, //是否需要权限
              parentPath: '/marketingCenter/activityManagement/activity',
              isbuild: 'buildpage'
            }
          }
        ]
      }
    ]
  },
  // 流程审批
  {
    path: '/caseFlowApproval',
    component: chunk.modules('middleView'),
    name: 'caseFlowApproval',
    meta: {
      title: '流程审批',
      icon: 'icon-icon_approval',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0109000000'
    },
    children: [
      {
        path: 'subEnclose',
        name: 'subEnclose',
        component: chunk.caseFlowApproval('orderEnclose/subEnclose'),
        meta: {
          title: '认购单附件补传审核',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109020000'
        }
      },
      {
        path: 'contractEnclose',
        name: 'contractEnclose',
        component: chunk.caseFlowApproval('orderEnclose/contractEnclose'),
        meta: {
          title: '签约单附件补传审核',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109030000'
        }
      },
      {
        path: 'channelAudit',
        name: 'channelAudit',
        component: chunk.caseFlowApproval('channelAudit/index'),
        meta: {
          title: '渠道合规审核',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109010000'
        }
      },
      {
        path: 'basePriceManagement',
        name: 'basePriceManagement',
        component: chunk.caseFlowApproval('basePrice/basePriceManagement'),
        meta: {
          title: '破底价审核管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109070000'
        }
      },
      {
        path: 'basePrice',
        name: 'basePrice',
        component: chunk.caseFlowApproval('basePrice/index'),
        meta: {
          title: '破底价审核',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109050000'
        }
      },
      {
        path: 'caseBillApproval',
        name: 'caseBillApproval',
        component: chunk.bonus('bill/index'),
        meta: {
          title: '奖金单审批',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109060000'
        }
      },
      {
        path: 'caseBillApproval/detail',
        name: 'caseBillApprovalDetail',
        component: chunk.bonus('bill/detail'),
        meta: {
          title: '奖金单审批详情',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/caseFlowApproval/caseBillApproval'
        }
      },
      {
        path: 'caseIncentiveApprove',
        name: 'caseIncentiveApprove',
        component: chunk.flowApproval('bonus/incentiveApprove/incentiveApprove'),
        meta: {
          title: '在销激励审批',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109090000'
        }
      },
      {
        path: 'caseIncentiveApprove/detail',
        name: 'caseIncentiveApproveDetail',
        component: chunk.bonus('incentive/incentiveSee'),
        meta: {
          title: '在销激励审批详情',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/caseFlowApproval/caseIncentiveApprove'
        }
      },
      {
        path: 'caseAllowanceApprove',
        name: 'caseAllowanceApprove',
        component: chunk.flowApproval('bonus/allowanceApprove/allowanceApprove'),
        meta: {
          title: '项目津贴审批',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0109080000'
        }
      },
      {
        path: 'caseAllowanceApprove/detail',
        name: 'caseAllowanceApproveDetail',
        component: chunk.bonus('allowance/allowanceSee'),
        meta: {
          title: '项目津贴审批详情',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/caseFlowApproval/caseAllowanceApprove'
        }
      }
    ]
  },
  // 报表统计
  {
    path: '/caseReport',
    component: chunk.modules('middleView'),
    name: 'caseReport',
    meta: {
      title: '报表统计',
      icon: 'icon-icon_date',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0110000000'
    },
    children: [
      {
        path: 'performanceRpt',
        name: 'performanceRpt',
        component: chunk.caseReport('performanceRpt/index'),
        meta: {
          title: '业绩确认报表',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0110010000'
        }
      },
      {
        path: 'ownerPerformanceProve',
        name: 'ownerPerformanceProve',
        component: chunk.caseReport('ownerPerformanceProve/index'),
        meta: {
          title: '甲方业绩确认证明',
          sideBar: true,
          keepAlive: true,
          isbuild: 'buildpage',
          permissionCode: '0110020000'
        }
      },

      {
        path: 'basicDataRpt',
        name: 'basicDataRpt',
        component: chunk.caseReport('basicDataRpt/index'),
        meta: {
          title: '基础数据表',
          sideBar: true,
          keepAlive: true,
          isbuild: 'buildpage',
          permissionCode: '0110040000'
        }
      },
      {
        path: 'rankJumpRpt',
        name: 'rankJumpRpt',
        component: chunk.caseReport('rankJumpRpt/index'),
        meta: {
          title: '职级跳点报表',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0110030000'
        }
      },
      {
        path: 'goalReach',
        name: 'goalReach',
        component: chunk.caseReport('goalReach/index'),
        meta: {
          title: '目标达成统计',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0110050000'
        }
      }
    ]
  },
  // 佣金管理
  {
    path: '/caseCommission',
    component: chunk.modules('middleView'),
    name: 'caseCommission',
    meta: {
      title: '佣金管理',
      icon: 'icon-icon_money_manage',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0111000000'
    },
    children: [
      {
        path: 'initiate',
        name: 'initiate',
        component: chunk.caseCommission('initiate/index'),
        meta: {
          title: '请佣发起',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0111010000'
        }
      },
      {
        path: 'initiate/room',
        name: 'room',
        component: chunk.caseCommission('initiate/room'),
        meta: {
          title: '请佣房源选择',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/caseCommission/initiate'
        }
      },
      {
        path: 'initiate/detail',
        name: 'detail',
        component: chunk.caseCommission('initiate/detail'),
        meta: {
          title: '请佣单明细',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/caseCommission/initiate'
        }
      },
      {
        path: 'rule',
        name: 'caseCommissionRule',
        component: chunk.caseCommission('rule/index'),
        meta: {
          title: '佣金规则',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0111020000'
        }
      }
    ]
  },
  // 奖金管理
  {
    path: '/bonus',
    component: chunk.modules('middleView'),
    name: 'bonus',
    meta: {
      title: '奖金管理',
      icon: 'icon-icon_money_else',
      sideBar: true,
      isbuild: 'buildpage',
      permissionCode: '0112000000'
    },
    children: [
      {
        path: 'bill',
        name: 'bill',
        component: chunk.bonus('bill/index'),
        meta: {
          title: '标准奖金管理',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0112010000'
        }
      },
      {
        path: 'bill/edit',
        name: 'billEdit',
        component: chunk.bonus('bill/detail'),
        meta: {
          title: '奖金单编辑',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/bonus/bill'
        }
      },
      {
        path: 'bill/detail',
        name: 'billDetail',
        component: chunk.bonus('bill/detail'),
        meta: {
          title: '奖金单明细',
          sideBar: false,
          noAuthor: true,
          isbuild: 'buildpage',
          parentPath: '/bonus/bill'
        }
      },
      {
        path: 'paramConfig',
        name: 'paramConfig',
        component: chunk.modules('middleView'),
        meta: {
          title: '奖金参数配置',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0112040000'
        },
        children: [
          {
            path: 'template',
            name: 'template',
            component: chunk.bonus('paramConfig/template/index'),
            meta: {
              title: '奖金模板',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0112040100'
            }
          },
          {
            path: 'template/edit',
            name: 'bonusTemplateEdit',
            component: chunk.bonus('paramConfig/template/detail'),
            meta: {
              title: '奖金模板编辑',
              sideBar: false,
              noAuthor: true,
              isbuild: 'buildpage',
              parentPath: '/bonus/paramConfig/template'
            }
          },
          {
            path: 'template/detail',
            name: 'bonusTemplateDetail',
            component: chunk.bonus('paramConfig/template/detail'),
            meta: {
              title: '奖金模板明细',
              sideBar: false,
              noAuthor: true,
              isbuild: 'buildpage',
              parentPath: '/bonus/paramConfig/template'
            }
          },
          {
            path: 'levelPoints',
            name: 'levelPoints',
            component: chunk.bonus('paramConfig/levelPoints/index'),
            meta: {
              title: '职级点数',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0112040200'
            }
          },
          {
            path: 'levelPoints/edit',
            name: 'levelPointsEdit',
            component: chunk.bonus('paramConfig/levelPoints/detail'),
            meta: {
              title: '职级点数编辑',
              sideBar: false,
              noAuthor: true,
              isbuild: 'buildpage',
              parentPath: '/bonus/paramConfig/levelPoints'
            }
          },
          {
            path: 'levelPoints/detail',
            name: 'levelPointsDetail',
            component: chunk.bonus('paramConfig/levelPoints/detail'),
            meta: {
              title: '职级点数明细',
              sideBar: false,
              noAuthor: true,
              isbuild: 'buildpage',
              parentPath: '/bonus/paramConfig/levelPoints'
            }
          },
          {
            path: 'parameter',
            name: 'parameter',
            component: chunk.bonus('paramConfig/parameter/index'),
            meta: {
              title: '奖金参数',
              sideBar: true,
              isbuild: 'buildpage',
              permissionCode: '0112040300'
            }
          }
        ]
      },

      // zjz
      {
        path: 'incentive',
        name: 'incentive',
        component: chunk.bonus('incentive/incentive'),
        meta: {
          title: '在销激励奖金',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0112020000'
        }
      },
      {
        path: 'incentive/incentiveLaunch',
        name: 'incentiveLaunch',
        component: chunk.bonus('incentive/incentiveLaunch'),
        meta: {
          title: '在销激励奖金发起',
          isbuild: 'buildpage',
          noAuthor: true,
          sideBar: false,
          parentPath: '/bonus/incentive'
        }
      },
      {
        path: 'incentive/incentiveSee',
        name: 'incentiveSee',
        component: chunk.bonus('incentive/incentiveSee'),
        meta: {
          title: '在销激励查看',
          isbuild: 'buildpage',
          noAuthor: true,
          sideBar: false,
          parentPath: '/bonus/incentive'
        }
      },

      {
        path: 'allowance',
        name: 'allowance',
        component: chunk.bonus('allowance/allowance'),
        meta: {
          title: '项目津贴',
          sideBar: true,
          isbuild: 'buildpage',
          permissionCode: '0112030000'
        }
      },
      {
        path: 'allowance/allowanceLaunch',
        name: 'allowance/allowanceLaunch',
        component: chunk.bonus('allowance/allowanceLaunch'),
        meta: {
          title: '项目津贴发起',
          isbuild: 'buildpage',
          noAuthor: true,
          sideBar: false,
          parentPath: '/bonus/allowance'
        }
      },
      {
        path: 'allowance/allowanceSee',
        name: 'allowance/allowanceSee',
        component: chunk.bonus('allowance/allowanceSee'),
        meta: {
          title: '项目津贴查看',
          isbuild: 'buildpage',
          noAuthor: true,
          sideBar: false,
          parentPath: '/bonus/allowance'
        }
      },
      {
        path: 'deferLog',
        name: 'deferLog',
        component: chunk.bonus('deferLog/index'),
        meta: {
          title: '延期申请记录',
          noAuthor: true,
          sideBar: true,
          isbuild: 'buildpage'
        }
      }
    ]
  }
]
